testsuite: Add a color matrix test case
authorTimm Bäder <mail@baedert.org>
Sat, 18 May 2019 07:22:44 +0000 (09:22 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 18 May 2019 11:47:59 +0000 (13:47 +0200)
Color matrix nodes with an identity matrix and no offset should still
produce the expected image.

testsuite/gsk/compare/color-matrix-identity.node [new file with mode: 0644]
testsuite/gsk/compare/color-matrix-identity.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/color-matrix-identity.node b/testsuite/gsk/compare/color-matrix-identity.node
new file mode 100644 (file)
index 0000000..a81a474
--- /dev/null
@@ -0,0 +1,8 @@
+color-matrix {
+  child: color {
+    bounds: 0 0 50 50;
+    color: rgba(255, 0, 0, 0.5);
+  }
+  matrix: none;
+  offset: 0 0 0 0;
+}
diff --git a/testsuite/gsk/compare/color-matrix-identity.png b/testsuite/gsk/compare/color-matrix-identity.png
new file mode 100644 (file)
index 0000000..f88dc6a
Binary files /dev/null and b/testsuite/gsk/compare/color-matrix-identity.png differ
index 3150a2a59fff99c571157212e8956da4cb455a36..20851649b3bd5d1d38d7d8ae02464b41afd2b434 100644 (file)
@@ -40,6 +40,7 @@ compare_render_tests = [
   'outset_shadow_simple',
   'shadow-in-opacity',
   'texture-url',
+  'color-matrix-identity',
 ]
 
 renderers = [